<%-- 
    Document   : testjsp
    Created on : 04/12/2010, 10:00:42 PM
    Author     : Osamu
--%>
<%@ include file="/common/taglibs.jsp"%>
<%@page contentType="text/html;charset=UTF-8"%>
<%@page pageEncoding="UTF-8"%>
<%@ page session="false" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
        <title>JSP Page</title>
           <link href="css/civilized.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <h1>Hello World!</h1>
         
    <form:form modelAttribute="libro"  action="libro" method="post" >
        
        <form:input  path="codigo" class="txt" />
        <form:input  path="nombre" class="txt" />
        <form:input  path="descripcion" class="txt" />
        <form:input  path="imagen" class="txt" />
        <form:select path="activo" >
            <form:option  value="" >-Todos-</form:option>
            <form:option  value="1" >Activo</form:option>
            <form:option  value="0" >Inactivo</form:option>
        </form:select>
        <form:select path="categoria.idcategoria" >
                <form:options items="${listaCategorias}" itemLabel="descripcion" itemValue="idcategoria" />
        </form:select>
        <input type="submit"  class="btn" />
    </form:form>
        
    </body>
</html>
